package com.clx.common.domain.entity;


import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * 联系人表(Contact)实体类
 *
 * @author clx
 * @since 2025-02-23 09:16:58
 */
@Data
@Builder
public class Contact extends BaseEntity {
    private static final long serialVersionUID = -47534785758673935L;


    public Contact() {
    }

    public Contact(Integer id, String contactName, Integer userOther, Integer userSelf, String lastMessage, Date lastMessageTime, String remark, int status, Date createTime, String avatar) {
        this.id = id;
        this.contactName = contactName;
        this.userOther = userOther;
        this.userSelf = userSelf;
        this.lastMessage = lastMessage;
        this.lastMessageTime = lastMessageTime;
        this.remark = remark;
        this.status = status;
        this.createTime = createTime;
        this.avatar = avatar;
    }

    /**
     * 联系人id
     */
    private Integer id;
    /**
     * 联系人名称
     */
    private String contactName;
    /**
     * 联系人的用户id
     */
    private Integer userOther;
    /**
     * 自己的用户id
     */
    private Integer userSelf;
    /**
     * 联系人的最后一条消息
     */
    private String lastMessage;
    /**
     * 联系人的最后一条消息时间
     */
    private Date lastMessageTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 0未删除，1已经删除
     */
    private int status;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 头像URL
     */
    private String avatar;

}

